﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace SIG.InputModel.DTO
{
    public class ArticleDTO
    {
        public int Id { get; set; }

        [Display(Name = "主题", Prompt = "主题")]
        public string Title { get; set; }
      
        [Display(Name = "概要", Prompt = "概要")]
        public string Summary { get; set; }
      
        public int ViewCount { get; set; }

        [Display(Name = "新闻分类", Prompt = "新闻分类")]
        public string CategoryTitle { get; set; }

        [Display(Name = "缩略图", Prompt = "缩略图")]
        public string Thumbnail { get; set; }

        [Display(Name = "显示", Prompt = "显示")]
        public bool Active { get; set; }

        [Display(Name = "发布者", Prompt = "发布者")]
        public string CreatedBy { get; set; }

        [Display(Name = "创建日期")]
        [DisplayFormat(DataFormatString = "{0:d}")]
        public DateTime CreatedDate { get; set; }
        public bool Recommend { get; set; }
    }
}
